<%@ include file="/WEB-INF/jsp/include/skin_head.jsp" %><%@ page language="java" pageEncoding="UTF-8"%><%@ taglib uri="http://geeksaga.com/pagination-taglib" prefix="bbs" %>
    <div id="pw_bbs_list">
        <c:if test="${bbsType.categoryYn == '1'}">
        <div id="pw_category">
            <form:select path="categorySid" cssStyle="width: 120px;">
                <form:option value=""><spring:message code="category.default" /></form:option>
                <form:options items="${bbsCategory}" />
            </form:select>
        </div>
        </c:if>
        <div id="pw_bbs_list_header"></div>
        <div id="pw_bbs_list_body">
            <c:if test="${total == 0}">
                <spring:message code="bbs.msg.empty"/>
            </c:if>
            <c:forEach items="${list}" var="bbs" varStatus="status">
           		<div class="pw_gal_box">
		           <c:choose>
                    <c:when test="${bbs.noticeYn == '1'}">
                        <img src="<c:url value="/img/skin/${bbsType.bbsSkin}/i_notice.gif"/>" class="pw_bsc" />
                    </c:when>
                    <c:otherwise>
                     <c:choose>
                     <c:when test="${empty param.currentPage}">
                      <c:choose>
                         <c:when test="${bbs.bbsNo == param.bbsNo}">
                         <img src="<c:url value="/img/skin/${bbsType.bbsSkin}/i_selected.gif"/>" class="pw_bsc" />
                      </c:when>
                         <c:otherwise>
                      ${(total - (10 * 0)) - status.index}
                         </c:otherwise>
                         </c:choose>
                        </c:when>
	                    <c:otherwise>
                         <c:choose>
                         <c:when test="${bbs.bbsNo == param.bbsNo}">
                         <img src="<c:url value="/img/skin/${bbsType.bbsSkin}/i_selected.gif"/>" class="pw_bsc" />
                         </c:when>
                         <c:otherwise>    	                    
                         ${(total - (10 * param.currentPage)) - status.index}
                         </c:otherwise>
                         </c:choose>
                        </c:otherwise>
                    	</c:choose>  
                    </c:otherwise>
                    </c:choose>
		           <br />
		       	<div class="center">
		       	<span class="pw_img_wrapper">
		       		<span class="grep">
		       			<a href="#"><img src="<c:url value="/img/skin/default/i_notice.gif"/>" width="100" height="100" class="unc-smth" /></a>
		       		</span>
		       	</span>
		       	</div>
		       	<div class="sub">
		       		<c:if test="${bbsType.showNickYn == '1'}">
		       		<div class="right">${bbs.userNick}</div>
                    </c:if>
                    <c:if test="${bbsType.showRegistDateYn == '1'}">
		       		<div class="right">${bbs.modifyDate} ${bbs.modifyTime}</div>
                    </c:if>
		       	</div>
		       </div>
            </c:forEach>
            <div class="pw_gal_clear"></div>
        </div>
        <div id="pw_list_footer">
            <table border="0" width="100%" cellspacing="0" cellpadding="0">
            <colgroup>
                <col />
                <col width="3" />
                <col class="page" />
                <col width="3" />
                <col />
            </colgroup>
            <tr>
                <td class="search"><a href="<c:url value="/bbs/search.do?bbsId="/>${bbs.bbsId}&amp;command=SEARCH"><img src="<c:url value="/img/skin/default/btn_board_search.gif"/>" /></a></td>
                <td><img src="<c:url value="/img/skin/default/b_board_left.gif"/>" /></td>
                <td align="center">
                    <bbs:page
		                total="${total}"
		                pageSize="10"
		                link="${pageContext.request.contextPath}/bbs/list/${bbs.bbsId}/${bbs.categorySid}"
		                beginLabel="Home "
		                endLabel=" End"
		                prevLabel="&lt; "
		                nextLabel=" >"
		                pageGroupSize="10" />
                </td>
                <td><img src="<c:url value="/img/skin/default/b_board_right.gif"/>" /></td>
                <td class="write"><a href="<c:url value="/bbs/edit.do?bbsId="/>${bbs.bbsId}&amp;command=ADD"><img src="<c:url value="/img/skin/default/btn_board_write.gif"/>" /></a></td>
            </tr>
            </table>
        </div>
        <%@ include file="/WEB-INF/jsp/include/copyright.jsp" %>
    </div>